﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DataAccess;
namespace SQT.tracnghiem.Ajax.ASP.Events
{
    public partial class check_server_game : System.Web.UI.Page
    {
        public int? type = 0, id = 0, status = 0, check = 0;
        protected void Page_Load(object sender, EventArgs e)
        {
            int event_id = int.Parse(Request.QueryString["event_id"]);

            var get_event = new TblEventDetailController().FetchAll().Where(x => x.EventId == event_id);

            if(get_event.ToList().Count!=0)
            {
                type = get_event.Last().EventType;
                id = get_event.Last().EventQuestion;
                status = get_event.Last().EventStatus;
                check = get_event.Last().EventCheck;
            }
        }
    }
}